package com.agp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("古树图片实体")
public class TreeMedia {
    @ApiModelProperty(value = "图片id", example = "1",position = 1)
    private Integer mediaId;

    @ApiModelProperty(value = "古树id", example = "1",position = 2)
    private Integer treeId;  // 关联古树ID

    @ApiModelProperty(value = "图片URL", example = "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png",position = 3)
    private String mediaUrl; // 资源URL

    @ApiModelProperty(value = "图片类型", example = "IMAGE",position = 4)
    private MediaType mediaType;

    @ApiModelProperty(value = "创建时间", example = "2025-04-01 00:00:00",position = 5)
    private LocalDateTime createdTime;

    public enum MediaType {
        IMAGE, VIDEO
    }
}
